package com.mldong.modules.sys.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 第三方回调处理
 * </p>
 *
 * @author mldong
 * @since 2025-10-12
 */
@Getter
@Setter
@TableName("sys_third_party_callback")
@ApiModel(value = "ThirdPartyCallback对象", description = "第三方回调处理")
public class ThirdPartyCallback implements Serializable  {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("回调渠道(wx：微信；ali：支付宝；union银联)")
    private String channelType;

    @ApiModelProperty("回调业务ID")
    private String serviceId;

    @ApiModelProperty("回调服务类型(wx_pay：微信支付回调，wx_refund微信退款回调)")
    private String serviceType;

    @ApiModelProperty("回调请求正文")
    private String body;

    @ApiModelProperty("处理状态（0：未处理；1：处理成功：2：处理失败）")
    private Integer handleStatus;

    @ApiModelProperty("处理结果数据")
    private String handleResult;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty("更新用户")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    @ApiModelProperty("是否删除")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Integer isDeleted;

}
